//
//  NSDate+Time.h
//  LYProfiles
//
//  Created by boom on 2017/6/8.
//  Copyright © 2017年 boomLi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Time)

/**根据字符串返回的时间戳*/
+(NSString *)getTimeStampFromDate:(NSString *)dateStr Style:(NSString *)style;

/**根据日期返回时间戳*/
+(NSString *)getTimeStampFromNSDate:(NSDate *)date Style:(NSString *)style;

/**根据时间戳返回日期*/
+(NSDate *)getNSDateByStamp:(NSString *)stamp Style:(NSString *)style;

/**根据时间戳返回日期*/
+(NSString *)getNSDateStringByStamp:(NSString *)stamp Style:(NSString *)style;

/**判断是否是周末*/
+(BOOL)isOnTheWeakend:(NSString *)dateStr;

@end
